package com.landian.sell;

import com.landian.sell.config.AppConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;


@SpringBootApplication
@EnableConfigurationProperties({AppConfig.class})
@ComponentScan(basePackages={"com.landian"})
public class SellApplication extends SpringBootServletInitializer {

	public static void main(String[] args) {
		SpringApplication.run(SellApplication.class, args);
	}

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(SellApplication.class);
	}
}
